<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Goods extends Model
{
    use HasFactory;

    protected $primaryKey = 'id';

    protected $fillable = ['goods_bn', 'goods_name', 'goods_alias', 'cost_price', 'sale_price', 'created_at', 'updated_at'];

    protected $appends = [];

    protected $casts = [
        'created_at'   => 'datetime:Y-m-d H:i:s',
        'updated_at'   => 'datetime:Y-m-d H:i:s',
    ];
}
